home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
e
/
misc.xsave
/
000037_fdc@panix.com_Wed Dec 20 09:47:35 2006.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: reader2.panix.com!reader1.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Macro: Terminal -> Command -> Terminal -> Command?
Date: Wed, 20 Dec 2006 14:47:28 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 50
Message-ID: <slrneoij80.b21.fdc@panix1.panix.com>
References: <xwOhh.34809$cz.516497@ursa-nb00s0.nbnet.nb.ca> <lWShh.32651$tb6.31529@news-wrt-01.rdc-nyc.rr.com> <bF8ih.35271$cz.521966@ursa-nb00s0.nbnet.nb.ca>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix1.panix.com
X-Trace: reader2.panix.com 1166626048 1735 166.84.1.1 (20 Dec 2006 14:47:28 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 20 Dec 2006 14:47:28 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15607
On 2006-12-20, Scott Caissie <scottac@nb.sympatico.ca> wrote:
: I see. I've been testing this out all day, and it works pretty much the way
: I was aiming for. I was never referred to using the INPUT command before,
: and to be honest, I don't understand it 100% yet. I'm basically mirroring my
: actions.
:
I try to explain it succinctly here:
http://www.columbia.edu/kermit/ckscripts.html#tut
: I do have a question. Is there restrictions about using INPUT 0 <text>?
: This example works fine, but if I use INPUT 0 etc, it won't. I check to see
: if it works by using \Fscrnstr(y,x,n) on a large scale.
:
As far as I know, INPUT 0 should work OK in K95 2.1.3. I tested it just now,
briefly, and it behaved as expected: succeeds if the text has already arrived
but has not yet been processed, fails if the text is not there. I don't see
anything in my notes about problems with or fixes to this.
Incidentally, INPUT has a bunch of related variables that you might find
useful. You can see them by typing "show var ^in" (show all the builtin
variables whose names start with "in"):
\v(input) = The current INPUT buffer contents (circular)
\v(inchar) = The character most recently read by INPUT
\v(incount) = 0 How many chars were read by the most recent INPUT
\v(inmatch) = The string that the INPUT command matched
\v(instatus) = -1 Status of last INPUT command
\v(intime) = -1 Elapsed time for the most recent INPUT to complete
\v(inwait) = 0 Time limit specified for most recent INPUT
\v(inmatch) is useful with MINPUT, when you are looking for any of a
number of strings to show up, so you know which one you got. This result
is typically used as a SWITCH control, to process the event. It's also
useful when using INPUT with \fpattern() to search for a pattern rather
than a literal string, to know what the string was that matched the
pattern.
\v(instatus) is:
0 if INPUT succeeded
1 if the INPUT command timed out
2 if the user interrupted the INPUT command from the keyboard
3 (internal error, shouldn't happen)
4 i/o error or connection lost.
5 Kermit server active (INPUT attempted with WIKSD).
For more information about the INPUT command, type HELP SET INPUT at the
K-95> prompt.
- Frank